package com.ruoyi.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.YcThesisScoreMapper;
import com.ruoyi.domain.YcThesisScore;
import com.ruoyi.service.IYcThesisScoreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 论文字典Service业务层处理
 * 
 * @author 杨琛
 * @date 2020-09-09
 */
@Service
public class YcThesisScoreServiceImpl implements IYcThesisScoreService 
{
    @Autowired
    private YcThesisScoreMapper ycThesisScoreMapper;

    /**
     * 查询论文字典
     * 
     * @param id 论文字典ID
     * @return 论文字典
     */
    @Override
    public YcThesisScore selectYcThesisScoreById(Long id)
    {
        return ycThesisScoreMapper.selectYcThesisScoreById(id);
    }

    /**
     * 查询论文字典列表
     * 
     * @param ycThesisScore 论文字典
     * @return 论文字典
     */
    @Override
    public List<YcThesisScore> selectYcThesisScoreList(YcThesisScore ycThesisScore)
    {
        return ycThesisScoreMapper.selectYcThesisScoreList(ycThesisScore);
    }

    /**
     * 新增论文字典
     * 
     * @param ycThesisScore 论文字典
     * @return 结果
     */
    @Override
    public int insertYcThesisScore(YcThesisScore ycThesisScore)
    {
        return ycThesisScoreMapper.insertYcThesisScore(ycThesisScore);
    }

    /**
     * 修改论文字典
     * 
     * @param ycThesisScore 论文字典
     * @return 结果
     */
    @Override
    public int updateYcThesisScore(YcThesisScore ycThesisScore)
    {
        return ycThesisScoreMapper.updateYcThesisScore(ycThesisScore);
    }

    /**
     * 删除论文字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYcThesisScoreByIds(String ids)
    {
        return ycThesisScoreMapper.deleteYcThesisScoreByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除论文字典信息
     * 
     * @param id 论文字典ID
     * @return 结果
     */
    @Override
    public int deleteYcThesisScoreById(Long id)
    {
        return ycThesisScoreMapper.deleteYcThesisScoreById(id);
    }

    @Override
    public YcThesisScore selectYcTaskScoreByLevel(String journalCategories) {
        return ycThesisScoreMapper.selectYcTaskScoreByLevel(journalCategories);
    }

}
